package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import com.google.gson.annotations.Expose;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class Subrubro extends ExposedModel {

	@ManyToOne	
	public Rubro rubro;
	
	@Expose
	@Required
	public String descripcion;
	
	@Override
	public String toString() {
		return descripcion;
	}
}
